package com.lorianknights.rpg.data.asset
{
	
	import com.lorianknights.rpg.data.asset.base.ItemBase;
	import com.lorianknights.rpg.interfaces.IItem;
	
	public class Item extends ItemBase implements IItem
	{
		
		private var _base:ItemBase;
		public var userid:int;
		public var count:int;
		
		public function Item(itemObj:Object)
		{
			
			super();
			
			if ("intUserID" in itemObj)
			{
				
				this.userid = int(itemObj.intUserID);
				
			}
			
			if ("intCount" in itemObj)
			{
				
				this.count = int(itemObj.intCount);
				
			}
		}
		
		public function get intUserID():int
		{
			
			return this.userid;
			
		}
		
		public function get intCount():int
		{
			
			return this.count;
			
		}
		
		public function get base():ItemBase
		{
			
			return this._base;
			
		}
	}
}